class BestFit:
    def __init__(self):
        self.memoria = None
        
    def getBloqueN(self,n):
        block=None
        f = 1000
        '''cualquier numero superior ala memoria'''
        for b in self.memoria.freeBlocks:
            if(b.size()>=n and f > b.size() ):
                block = b
                f = b.size()
        return block